Bug 659602 - Provide an abstraction for the platform's use of modifier keys
authorMichael Natterer <mitch@lanedo.com>
Tue, 27 Sep 2011 07:50:34 +0000 (09:50 +0200)
committerMichael Natterer <mitch@gimp.org>
Tue, 27 Sep 2011 07:56:25 +0000 (09:56 +0200)
commit4a7a67339a3c8a7c523b32b36a7fc2ea5abfb8f8
tree954b9cee7be7c1d578d524b3d4bac05f7d921411
parent04009aa3329486cc60634865b597195babbec774
Bug 659602 - Provide an abstraction for the platform's use of modifier keys

Add enum GdkModifierIntent which identifies use cases for modifier masks
and GdkKeyMap::get_modifier_mask(). Add a default implementation which returns
what is currently hardcoded all over GTK+, and an implementation in the
quartz backend. Also add gtk_widget_get_modifier_mask() which simplifies
things by doing widget->display->keymap->get_modifier_mask().
gdk/gdkkeys.c
gdk/gdkkeys.h
gdk/gdkkeysprivate.h
gdk/gdktypes.h
gdk/quartz/gdkkeys-quartz.c
gtk/gtkwidget.c
gtk/gtkwidget.h